package demo1;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Tectfinally {
    public static void main(String[] args) {
        System.out.println(func1());
    }
    public static int func1(){
        try {
             return 10;
        }finally {
            return 20;
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        try{
            int date = scanner.nextInt();
            System.out.println(date);
            return;
        }catch(InputMismatchException e){
            System.out.println("找到了InputMismatchException异常，正在修改.... ");
        }finally {
            System.out.println("finlly 执行了....");
        }
    }
}
